package com.itkjb.leisurely.resource.sys.service;

import com.itkjb.leisurely.core.model.SearchModel;
import com.itkjb.leisurely.resource.sys.model.SysDictGroupModel;
import com.itkjb.leisurely.core.base.IBaseService;
import com.itkjb.leisurely.resource.sys.model.vo.SysDictGroupVO;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 字典分组 服务类
 * </p>
 *
 * @author itkjb.com
 * @since 2020-08-14
 */
public interface ISysDictGroupService extends IBaseService<SysDictGroupModel> {

    /**
     * 字典分组结构树
     * @param searchModel
     * @return
     */
    List<SysDictGroupVO> tree(SearchModel<SysDictGroupModel> searchModel);
    /**
     * 获取指定分组的所有下级id
     * @param id
     * @return
     */
    Set<String> getSubIds(String id);
}
